package com.acme.bankapp.service.bank.email;

import com.acme.bankapp.domain.bank.Client;

/**
 * Created by Student on 21.11.2014.
 */
public class Email {
    private final Client client;
    private final String emailAddress;

    @Override
    public String toString() {
        return client.getSalutation() + " (" + emailAddress + ")";
    }

    public Email(final Client client, final String emailAddress) {
        this.client = client;
        this.emailAddress = emailAddress;
    }

}
